package service.Seller.impl;

import dao.Seller.SellerDao;
import dao.Seller.impl.SellerDaoImpl;
import pojo.Seller;
import service.Seller.SellerService;

public class SellerServiceImpl implements SellerService {
    private SellerDao sellerDao;
    public SellerServiceImpl(){
        sellerDao = new SellerDaoImpl();
    }

    /**
     * 验证用户名密码
     * @param userName
     * @param userPwd
     * @return
     */
    public Seller CheckSuser(String userName, String userPwd) {
        return sellerDao.CheckSuser(userName,userPwd);
    }

   //根据id查询
    public Seller SelSuser(Long id) {
        return sellerDao.SelSuser(id);
    }

   //修改个人信息
    public int updateSuser(Seller seller) {
        return sellerDao.updateSuser(seller);
    }

  //修改密码
    public int updateSuserPwd(Seller seller) {
        return sellerDao.updateSuserPwd(seller);
    }
}
